using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class 坦克大战_UI总 : MonoBehaviour
{
    private Text tank_turretturn_angle;
    public GameObject tank;
    private GameObject tank_turretturn;

    private void Awake()
    {
        tank_turretturn_angle = GameObject.Find("炮塔转角文本").GetComponent<Text>();
        //有问题，没有使用tank
        tank_turretturn = GameObject.Find("炮塔转轴");





    }

    private void Update()
    {
        tank_turretturn_angle.text = "炮塔转角：" + tank_turretturn.transform.localEulerAngles.y 
            + "\n当前敌方坦克血量：" + tank_values.enemy_tank_HP
            + "\n是否开启机枪：" + tank_values.gun_switch
            + "\n坦克速度：" + tank_values.speed_P1
            + "\n坦克转速：" + tank_values.tank_turn_speed_P1
            + "\n坦克炮塔转速：" + tank_values.tank_turretturn_speed_P1;




    }




}
